import com.captainbank.tcl.tclapplication.utils.StringUtil;

/**
 * Created by TCL on 2019/4/17.
 * Describe:
 */
public class JavaTest {


    public static void main(String[] args) {
        int[] nums = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
        int target = 9;
        int size = nums.length;
        for (int i = 0; i <= size - 2; i++) {
            for (int j = 1; j <= size - 1; j++) {
                if (nums[i] + nums[j] == target) {
                    System.out.println("输出：i = " + i + " , j = " + j);
                }
            }
        }


        String imgUrl = "https://test-cloud-wlz-com.oss-cn-shanghai.aliyuncs.com/report/Research/1555377276024_2018年房产行业报告【360营销学院】.pdf";
        if (imgUrl.contains("/")) {
            System.out.println("输出：yes");
        } else {
            System.out.println("输出：no");
        }
        int index = imgUrl.lastIndexOf("/");
        System.out.println("输出index：" + index);
        String image = imgUrl.substring(index + 1);
        System.out.println("输出image：" + image);
    }

}
